<?php /* Smarty version Smarty-3.1.11, created on 2013-09-15 09:48:16
         compiled from "..\templates\ctdt\ds_lichthi.tpl" */ ?>
<?php /*%%SmartyHeaderCode:3153852351ff0f3ae60-86004180%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a0855825f067168ca3982eeb409bcea5e2595c05' => 
    array (
      0 => '..\\templates\\ctdt\\ds_lichthi.tpl',
      1 => 1374637292,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3153852351ff0f3ae60-86004180',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'trungtam' => 0,
    'tt' => 0,
    'locdl' => 0,
    'dsthang' => 0,
    'thang' => 0,
    'dsnam' => 0,
    'nam' => 0,
    'dslichthi' => 0,
    'i' => 0,
    'lt' => 0,
    'hanche' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_52351ff130fe51_95134117',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_52351ff130fe51_95134117')) {function content_52351ff130fe51_95134117($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\tuxa\\lib\\smarty\\plugins\\modifier.date_format.php';
?><script>
    function loc(){
        var url="index.php?muc=ctdt&modul=ds_lichthi";
        if($("#trungtam").val()!=""){
            url=url+"&trungtam="+$("#trungtam").val();
        }
        if($("#thang").val()!=""){
            url=url+"&thang="+$("#thang").val();
        }
        if($("#nam").val()!=""){
            url=url+"&nam="+$("#nam").val();
        }
        window.location.href=url;
    }
</script>
<div class="content-box"><!-- Start Content Box -->
	<div class="content-box-header">
		<h3>DS lịch thi các môn học</h3>
	</div> <!-- End .content-box-header -->
	<div class="content-box-content">
<!-------------------------------------------------- NỘI DUNG TRANG--------------------------------------------->

    <form action="" method="POST" id="formnoidung">
        <table>
           
            <tr>
                <td class="td-100">
                    
                    <select name="trungtam" id="trungtam" onchange="loc()" >
                            <option value="">-- Trung tâm --</option>
                            <?php  $_smarty_tpl->tpl_vars['tt'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tt']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['trungtam']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tt']->key => $_smarty_tpl->tpl_vars['tt']->value){
$_smarty_tpl->tpl_vars['tt']->_loop = true;
?>     
                            <option value="<?php echo $_smarty_tpl->tpl_vars['tt']->value['ma_trungtam'];?>
" <?php if ($_smarty_tpl->tpl_vars['tt']->value['ma_trungtam']==$_smarty_tpl->tpl_vars['locdl']->value['trungtam']){?> selected="" <?php }?>><?php echo $_smarty_tpl->tpl_vars['tt']->value['ten_trungtam'];?>
</option>
                            <?php } ?>                            
                    </select>
                </td>
                <td>
                Tháng:
                <select name="thang" id="thang" onchange="loc()" >
                            <?php  $_smarty_tpl->tpl_vars['thang'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['thang']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dsthang']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['thang']->key => $_smarty_tpl->tpl_vars['thang']->value){
$_smarty_tpl->tpl_vars['thang']->_loop = true;
?>     
                            <option value="<?php echo $_smarty_tpl->tpl_vars['thang']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['thang']->value==$_smarty_tpl->tpl_vars['locdl']->value['thang']){?> selected="" <?php }?>><?php echo $_smarty_tpl->tpl_vars['thang']->value;?>
</option>
                            <?php } ?>                                                        
                </select>
                </td>
                <td>
                Năm:
                <select name="nam" id="nam" onchange="loc()" >
                            <?php  $_smarty_tpl->tpl_vars['nam'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nam']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dsnam']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['nam']->key => $_smarty_tpl->tpl_vars['nam']->value){
$_smarty_tpl->tpl_vars['nam']->_loop = true;
?>     
                            <option value="<?php echo $_smarty_tpl->tpl_vars['nam']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['nam']->value==$_smarty_tpl->tpl_vars['locdl']->value['nam']){?> selected="" <?php }?>><?php echo $_smarty_tpl->tpl_vars['nam']->value;?>
</option>
                            <?php } ?>
                                                        
                </select>
                </td>
            </td>
            </tr>
        </table><br />
        <table>
        <tr>
            <td>STT</td>
            <td class="td-70">Ngày thi</td>
            <td class="td-70">Phòng thi</td>
            <td class="td-70">Ca thi</td>
            <td class="td-200">Tên Môn</td>
            <td class="td-70">Ngày Nhập</td>
            <td class="td-70">Ngày Duyệt</td>
            <td class="td-100">Trạng thái</td>
            <td class="td-70"> Nhập điểm</td>
            <td class="td-70"> XN Điểm</td>
            <td class="td-70"> Xem điểm</td>
        </tr>
        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
        <?php  $_smarty_tpl->tpl_vars['lt'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lt']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dslichthi']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lt']->key => $_smarty_tpl->tpl_vars['lt']->value){
$_smarty_tpl->tpl_vars['lt']->_loop = true;
?>
            <tr>
                <td><?php echo $_smarty_tpl->tpl_vars['i']->value++;?>
</td>
                <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['lt']->value['ngaythi'],'%d/%m/%Y');?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['lt']->value['phongthi'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['lt']->value['cathi'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['lt']->value['ten_mh'];?>
</td>
                <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['lt']->value['ngaynhap_diemthi'],'%d/%m/%Y');?>
</td>
                <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['lt']->value['ngayduyet_diemthi'],'%d/%m/%Y');?>
</td>
                <td>
                <?php if ($_smarty_tpl->tpl_vars['lt']->value['nguoiduyet_diemthi']!=null){?> Đã duyệt điểm 
                <?php }elseif($_smarty_tpl->tpl_vars['lt']->value['nguoinhap_diemthi']==null){?>Chưa Nhập Điểm 
                <?php }else{ ?> Đã nhập điểm
                <?php }?>
                </td>
<?php if ($_smarty_tpl->tpl_vars['hanche']->value==false){?>                
                <td>
                    <?php if ($_smarty_tpl->tpl_vars['lt']->value['nguoinhap_diemthi']==null){?>
                    <a href="index.php?muc=diemhocphan&modul=add_diem&lich=<?php echo $_smarty_tpl->tpl_vars['lt']->value['ma_dssv_pt'];?>
">Nhập Điểm</a>
                    <?php }?>
                </td>
                <td>
                    <?php if ($_smarty_tpl->tpl_vars['lt']->value['nguoinhap_diemthi']!=null&&$_smarty_tpl->tpl_vars['lt']->value['nguoiduyet_diemthi']==null){?>
                    <a href="index.php?muc=diemhocphan&modul=xacnhan&lich=<?php echo $_smarty_tpl->tpl_vars['lt']->value['ma_dssv_pt'];?>
">XN Điểm</a>
                    <?php }?>
                </td>
<?php }else{ ?>
                <td></td>
                <td></td>
<?php }?>
                <td>
                    <?php if ($_smarty_tpl->tpl_vars['lt']->value['nguoinhap_diemthi']!=null&&$_smarty_tpl->tpl_vars['lt']->value['nguoiduyet_diemthi']!=null){?>
                    <a href="index.php?muc=diemhocphan&modul=xemdiem&lich=<?php echo $_smarty_tpl->tpl_vars['lt']->value['ma_dssv_pt'];?>
">Xem Điểm</a>
                    <?php }?>
                </td>
            </tr>                    
        <?php } ?>
        </table>
    </form>
<!-------------------------------------------------- KẾT THÚC NỘI DUNG TRANG------------------------------------->
</div> <!-- End .content-box-content -->
</div> <!-- End .content-box --><?php }} ?>